package com.feng.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloController {
//    @RequestMapping("/hello")
    //可以根据多个地址访问
    @RequestMapping(value = {"/hello","hi"})
    public String TestHello(){
        return "hello";
    }

    @RequestMapping("/main")
    public String ToMain(){
        return "main";
    }
}
